import request from '@/utils/request'
import {encrypt} from "@/utils/jsencrypt";

// 查询岗位列表
export function listLocation(query) {
  return request({
    url: '/wm/location/list',
    method: 'get',
    params: query
  })
}

export function getLocation(query) {
  return request({
    url: '/wm/location/listById',
    method: 'get',
    params: query
  })
}

export function updateLocation(data) {
  return request({
    url: '/wm/location/update',
    method: 'post',
    data
  })
}
export function delLocation(query) {
  return request({
    url: '/wm/location/del',
    method: 'get',
    params: query
  })
}

export function addLocation(data) {
  return request({
    url: '/wm/location/add',
    method: 'post',
    data
  })
}
